package com.shiguiwu.springmybatis.algorithm.stack;

/**
 * @description:
 * 栈能解决的问题：表达式计算，波兰表达式,逆波兰计算器，中缀，前缀，后缀表达式和计算有关
 * @author: stone
 * @date: Created by 2021/3/10 22:30
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.algorithm.stack
 */
public class ArrayStackTests {

    public static void main(String[] args) {
        ArrayStack stack = new ArrayStack(6);
        stack.push(1);
        stack.push(34);
        stack.push(3);
        stack.push(7);
        stack.push(8);
        stack.print();
        stack.pop();
        System.out.println("==================================");
        stack.print();

    }
}
